<!DOCTYPE html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form  th:action="@{/user/updateUser}" method="post">
    <input type="hidden" name="id" th:value="${user.id}"/><br/>
    姓名：<input type="text" name="nam" th:value="${user.nam}"/><br/>
    密码：<input type="text" name="pwd" th:value="${user.pwd}"/><br/>
    性别：<input th:field="${user.sex}" type="radio" name="sex" th:value="2" />女
    <input th:field="${user.sex}"  type="radio" name="sex" th:value="1"/>男<br/>
    生日：<input  type="text" name="birth" th:value="${#dates.format(user.birth,'yyyy-MM-dd')}" /><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>